<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglib.jsp" %>

<script>
//# sourceURL=orgPersonGrid.js

var selGrantRoleId = null;
var selGrantRoleName = null;

$(document).ready(function() {

	// 选择表格行
	$("#gridGrantRole table > tbody > tr").click(function() {
		$("#gridGrantRole table > tbody > tr").removeClass('info');
		$(this).addClass('info');
		selGrantRoleId = $(this)[0].id;
		selGrantRoleName = $(this).find("td").eq(1).text();
	});

});

</script>

<div id="gridGrantRole" class="table-responsive">
	<table class="table table-hover table-bordered">
	  <thead>
	    <tr>        
	    	<th>所属应用</th>
	      	<th>角色名称</th>
	    </tr>
	  </thead>
	  <tbody>
		<c:forEach items="${listRole}" var="node" varStatus="status">		
			<tr id='${node.roleId}'>
			<td>${node.appName}</td>	
			<td>${node.roleName}</td>
			</tr>
		</c:forEach>
	  </tbody>
	</table>
</div>

<%@ include file="/WEB-INF/view/common/bootstrapPage.jsp" %>
